package patterns.builder.core;

import java.util.ArrayList;
import java.util.List;

import com.ran.patterns.factoryMethod.forCore.MailSender;
import com.ran.patterns.factoryMethod.forCore.Sender;
import com.ran.patterns.factoryMethod.forCore.SmsSender;

public class Builder {
	private List<Sender> senders = new ArrayList<>();
	
	public List<Sender> produceMails(int count){
		for (int i = 0; i < count; i++) {
			senders.add(new MailSender());
		}
		return senders;
	}
	
	public List<Sender> produceSms(int count){
		for (int i = 0; i < count; i++) {
			senders.add(new SmsSender());
		}
		return senders;
	}
}
